package com.gl.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.gl.common.vo.FrontProduct;

@Mapper
public interface FrontProductDao {
	//获取前端的商品展示数据(12)
	@Select("select id,name,door_price,img_name from gl_product order by id desc limit 0,5")
	List<FrontProduct> findProducts();
	/*
	 * //获取前端的商品展示数据(所有)
	 * 
	 * @Select("select id,name,door_price,img_name from gl_product order by id desc"
	 * ) List<FrontProduct> findAllProducts();
	 */
}
